<template>
  <el-card>
    <el-card>
      <div class="box">
        <img :src="UserInfo.avatar" alt="" />
        <div>
          <H1>{{ gettime() }},{{ UserInfo.username }}</H1>
          <p>甄选运营平台后台管理系统</p>
        </div>
      </div>
    </el-card>
    <div class="buttom">
      <svg-icon name="welcome" width="550px" height="550px"></svg-icon>
    </div>
  </el-card>
</template>

<script setup lang="ts">
//引入用户数据仓库
import useUserInfo from "@/store/modules/user";
//引入问好的函数
import { gettime } from "@/utils/gettime";
//获取仓库数据
let UserInfo = useUserInfo();
</script>

<style scoped lang="scss">
.box {
  display: flex;

  align-items: center;

  img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-right: 20px;
  }

  H1 {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
  }
  p {
    color: skyblue;
    // 文字倾斜
    font-style: italic;
  }
}
.buttom {
  display: flex;
  justify-content: center;
}
</style>
